﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DiagramDesigner.CustomCode;

namespace DiagramDesigner.Generator
{
    public class EventCommandModel
    {
        public bool CreatesInitialState {private set; get;}
        public string EventName { get; private set; }
        public string DomainMethod { get; private set; }
        public IList<DomainProperty> AffectedProperties { get; private set; }
        public EventCommandModel(string eventName, 
            string domainMethod, 
            IList<DomainProperty> affectedProperties,
            bool createsInitialState = false)
        {
            this.EventName = eventName;
            this.DomainMethod = domainMethod;
            this.AffectedProperties = affectedProperties;
            CreatesInitialState = createsInitialState;
        }
    }
}
